home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _672961E8200C4D8AB2DC1B981280526B < prev    next >
Encoding:
Text File  |  2004-01-06  |  3.3 KB  |  115 lines

  1. MG = {
  2.     name = "MG",
  3.     
  4.     PlayerSlowDown = 1.0,                                    -- factor to slow down the player when he holds that weapon
  5.     ---------------------------------------------------
  6.     ActivateSound = Sound:Load3DSound("Sounds/Weapons/M4/m4weapact.wav"),    -- sound to play when this weapon is selected
  7.     AimMode=1,
  8.     
  9.     ZoomNoSway=1,             --no sway in zoom mode
  10.     ZoomOverlayFunc=AimModeZoomHUD.DrawHUD,
  11.     ---------------------------------------------------
  12.     ZoomFixedFactor=1,
  13.     FireParams ={                                                    -- describes all supported firemodes
  14.     {
  15.         no_zoom = 1,
  16.         HasCrosshair=1,
  17.         AmmoType="Unlimited",
  18.         ammo=120,
  19.         min_recoil=0,
  20.         max_recoil=0,
  21.         reload_time=0.1, -- default 2.8
  22.         fire_rate=0.082,
  23.         distance=1600,
  24.         damage=20, -- default =7
  25.         damage_drop_per_meter=.004,
  26.         bullet_per_shot=1,
  27.         bullets_per_clip=300,
  28.         FModeActivationTime = 2.0,
  29.         iImpactForceMul = 50,
  30.         iImpactForceMulFinal = 140,
  31.         no_ammo=1,
  32.  
  33.         -- make sure that the last parameter in each sound (max-distance) is equal to "whizz_sound_radius"
  34.         whizz_sound_radius=6,
  35.         whizz_probability=350,    -- 0-1000
  36.         whizz_sound={
  37.             Sound:Load3DSound("Sounds/weapons/bullets/whiz1.wav",SOUND_UNSCALABLE,100,1,6),
  38.             Sound:Load3DSound("Sounds/weapons/bullets/whiz2.wav",SOUND_UNSCALABLE,100,1,6),
  39.             Sound:Load3DSound("Sounds/weapons/bullets/whiz3.wav",SOUND_UNSCALABLE,100,1,6),
  40.             Sound:Load3DSound("Sounds/weapons/bullets/whiz4.wav",SOUND_UNSCALABLE,100,1,6),
  41.         },
  42.         
  43.         FireLoop="Sounds/Weapons/mounted/vulcan_mono.wav",
  44.         FireLoopStereo="Sounds/Weapons/mounted/vulcan.wav",
  45.         TrailOff="Sounds/Weapons/mounted/FINAL_M249_MONO_TAIL.wav",
  46.         TrailOffStereo="Sounds/Weapons/mounted/FINAL_M249_STEREO_TAIL.wav",
  47.         
  48.         DrySound = "Sounds/Weapons/DE/dryfire.wav",
  49.         
  50.         LightFlash = {
  51.             fRadius = 5.0,
  52.             vDiffRGBA = { r = 1.0, g = 1.0, b = 0.0, a = 1.0, },
  53.             vSpecRGBA = { r = 0.3, g = 0.3, b = 0.3, a = 1.0, },
  54.             fLifeTime = 0.75,
  55.         },
  56.     
  57.         ShellCases = {
  58.             geometry=System:LoadObject("Objects/Weapons/shells/rifleshell.cgf"),
  59.             focus = 1.5,
  60.             color = { 1, 1, 1},
  61.             speed = 0.1,
  62.             count = 1,
  63.             size = 3.0, 
  64.             size_speed = 0.0,
  65.             gravity = { x = 0.0, y = 0.0, z = -9.81 },
  66.             lifetime = 5.0,
  67.             frames = 0,
  68.             color_based_blending = 0,
  69.             particle_type = 0,
  70.         },
  71.  
  72.         -- remove this if not nedded for current weapon
  73.         MuzzleFlash = {
  74.             geometry_name = "Objects/Weapons/Muzzle_flash/mf_MG_fpv.cgf",
  75.             bone_name = "spitfire",
  76.             lifetime = 0.15,
  77.         },
  78.         MuzzleFlashTPV = {
  79.             geometry_name = "Objects/Weapons/Muzzle_flash/mf_MG_tpv.cgf",
  80.             bone_name = "spitfire",
  81.             lifetime = 0.05,
  82.         },
  83.  
  84.         -- trace "moving bullet"    
  85.         -- remove this if not nedded for current weapon
  86.         Trace = {
  87.             geometry=System:LoadObject("Objects/Weapons/trail_mounted.cgf"),
  88.             focus = 5000,
  89.             color = { 1, 1, 1},
  90.             speed = 120.0,
  91.             count = 1,
  92.             size = 1.0, 
  93.             size_speed = 0.0,
  94.             gravity = { x = 0.0, y = 0.0, z = 0.0 },
  95.             lifetime = 0.04,
  96.             frames = 0,
  97.             color_based_blending = 3,
  98.             particle_type = 0,
  99.         },
  100.  
  101.         SoundMinMaxVol = { 225, 5, 800 },
  102.  
  103.     },
  104.     },
  105.  
  106.     SoundEvents={
  107.     --    animname,    frame,    soundfile        
  108.     {    "reload1",    20,            Sound:LoadSound("Sounds/Weapons/M4/M4_20.wav")},
  109.     {    "reload1",    33,            Sound:LoadSound("Sounds/Weapons/M4/M4_33.wav")},
  110.     {    "reload1",    47,            Sound:LoadSound("Sounds/Weapons/M4/M4_47.wav")},
  111.     },
  112. }
  113.  
  114. CreateBasicWeapon(MG);
  115.